/**
 * 
 */
package com.kathez.dao;

import java.util.List;

import com.kathez.entity.DAOOperable;
import com.kathez.entity.KathezEntity;

/**
 * The result of the Insert DAO operation.
 * @author Balaji T
 *
 */
public interface DAOInsertResult extends DAOResult {
	
	/**
	 * Returns the successfully inserted object. 
	 * @return
	 */
	DAOOperable getInsertedObject();
	
	/**
	 * Returns the list of successfully inserted objects, in case multiples objects inserted.
	 * @return
	 */
	List<KathezEntity> getInsertedObjectList();
	
	/**
	 * Returns the no of objects inserted by the insert operation.
	 * @return
	 */
	int getInsertCount();
	
	/**
	 * indicates whether the insert operation is success or not.
	 * @return
	 */
	boolean isInsertSuccess();
	
	/**
	 * If insert operation is failed, returns the error code caused for failure
	 * @return
	 */
	String getInsertErrCode();
	
	/**
	 * If insert operation is failed, returns the error message caused for failure
	 * @return
	 */
	String getInsertErrMsg();
}
